package com.norteksoft.struts.web.ec;


import org.extremecomponents.table.core.TableModel;
import org.extremecomponents.table.view.AbstractHtmlView;
import org.extremecomponents.table.view.DefaultStatusBar;
import org.extremecomponents.table.view.DefaultToolbar;
import org.extremecomponents.util.HtmlBuilder;
public class UserHtmlView extends AbstractHtmlView{
	public UserHtmlView()
    {
    }

    protected void beforeBodyInternal(TableModel model)
    {
        
        getTableBuilder().tableStart();
        getTableBuilder().theadStart();
        getTableBuilder().filterRow();
        getTableBuilder().headerRow();
        getTableBuilder().theadEnd();
        getTableBuilder().tbodyStart();
    }

    protected void afterBodyInternal(TableModel model)
    {
        getCalcBuilder().defaultCalcLayout();
        getTableBuilder().tbodyEnd();
        getTableBuilder().tableEnd();
        toolbar(getHtmlBuilder(), getTableModel());
    }

    protected void toolbar(HtmlBuilder html, TableModel model)
    {
        (new DefaultToolbar(html, model)).layout();
    }

    protected void statusBar(HtmlBuilder html, TableModel model)
    {
        (new DefaultStatusBar(html, model)).layout();
    }
}
